package com.yanqu.road.entity.log.cross.feast;

import com.yanqu.road.entity.FieldTypeAnnotation;
import com.yanqu.road.entity.log.ServerBaseLog;
import com.yanqu.road.entity.log.maidian.BaseLogEntity;

import java.util.Date;

@FieldTypeAnnotation(tableName = "t_l_ck_activity_feast_log_add_score", dataUpload = true, desc = "山河乐宴-pvp得分", eventName = "shfete_fightscore", autoSave = true, uploadCk = true, isCross = true)
public class LogFeastAddScore extends ServerBaseLog {

    @FieldTypeAnnotation(desc = "活动", dataAttribute = "activityid", isIndex = true)
    private int activityId;

    @FieldTypeAnnotation(desc = "轮次")
    private int round;

    @FieldTypeAnnotation(desc = "玩家", isIndex = true)
    private long userId;

    @FieldTypeAnnotation(desc = "1：击杀；2：挂机 3: 晋级得分 ", dataAttribute = "shfete_gettype")
    private int addType;

    @FieldTypeAnnotation(desc = "获得积分", dataAttribute = "shfete_getscore")
    private long addScore;

    @FieldTypeAnnotation(desc = "当前积分", dataAttribute = "shfete_nowscore")
    private long nowScore;

    @FieldTypeAnnotation(desc = "入库时间")
    private Date logTime;

    public LogFeastAddScore(int activityId, int round, long userId, int addType, long addScore, long nowScore) {
        this.activityId = activityId;
        this.round = round;
        this.userId = userId;
        this.addType = addType;
        this.addScore = addScore;
        this.nowScore = nowScore;
        this.logTime = new Date();
    }

    public int getActivityId() {
        return activityId;
    }

    public void setActivityId(int activityId) {
        this.activityId = activityId;
    }

    public int getRound() {
        return round;
    }

    public void setRound(int round) {
        this.round = round;
    }

    public void setUserId(long userId) {
        this.userId = userId;
    }

    public int getAddType() {
        return addType;
    }

    public void setAddType(int addType) {
        this.addType = addType;
    }

    public long getAddScore() {
        return addScore;
    }

    public void setAddScore(long addScore) {
        this.addScore = addScore;
    }

    public long getNowScore() {
        return nowScore;
    }

    public void setNowScore(long nowScore) {
        this.nowScore = nowScore;
    }

    public Date getLogTime() {
        return logTime;
    }

    public void setLogTime(Date logTime) {
        this.logTime = logTime;
    }

    @Override
    public long getUserId() {
        return userId;
    }
}
